﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;



namespace Karaoke
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            TagLib.File tagFile = TagLib.File.Create(@"D:\Music\Canciones\Tribute to Dimebag\2009 - Metal Hammer - A Tribute To Dimebag Darrell\09 - Chimaira - Slaughtered.mp3");
            string []artist = tagFile.Tag.Performers;
            string album = tagFile.Tag.Album;
            string title = tagFile.Tag.Title;
            /*ID, Artista, Cancion*/
            ListViewItem[] test = new ListViewItem[] { new ListViewItem(new String[] { album, artist[0], title }), new ListViewItem(new String[] { "test4", "test5", "test6" }), new ListViewItem(new String[] { "test7", "test8", "test9" }) };
            llenaDirectorios(test);
        }

        private void llenaDirectorios(ListViewItem [] test)
        {
          
            /*
            string path = @"D:\Kisisel\";
            foreach (string s in Directory.GetDirectories(path))
            {
                Console.WriteLine(s.Remove(0, path.Length));
            }*/
            playlist.Items.AddRange(test);

        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

    }
}
